package com.gimi.cloud.jimi.manage.consumer.service.sys;

import com.gimi.cloud.jimi.common.utils.reqhead.Response;
import com.gimi.cloud.jimi.dto.sys.SysMenuDTO;
import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by wangwei on 2017/12/15.
 */
public interface MenuService {

    /**
     * 获取系统菜单列表
     * @return 菜单列表
     */
    public Response getMenuList(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response);

    public Response getMenuSingle(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response);

    /**
     * 添加菜单
     * @param requestBody
     * @param request
     * @param response
     */
    public Response addMenu(String requestBody,HttpServletRequest request, HttpServletResponse response);

    /**
     * 更新菜单
     * @param requestBody
     * @param request
     * @param response
     */
    public Response updateMenu(String requestBody,HttpServletRequest request, HttpServletResponse response);

    /**
     * 删除菜单
     * @param requestBody
     * @param request
     * @param response
     */
    public Response deleteMenu(String requestBody,HttpServletRequest request, HttpServletResponse response);
}
